package com.lh.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.lh.domain.Dev_user;
import com.lh.mapper.Dev_userMapper;
import com.lh.service.Dev_userService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lh
 * @since 2023-10-24
 */
@Service
public class Dev_userServiceImpl extends ServiceImpl<Dev_userMapper, Dev_user> implements Dev_userService {

    @Autowired
    private Dev_userMapper userMapper;

    private Dev_user dev_user;

    //通过用户名和密码查询总条数
    public Dev_user accountIsExist(String account,String password){
        LambdaQueryWrapper<Dev_user> wrapper = new LambdaQueryWrapper();
        wrapper.eq(Dev_user::getDevCode,account).eq(Dev_user::getDevPassword,password);
        return userMapper.selectOne(wrapper);
    }

}
